import numpy as np
import matplotlib.pyplot as mp
import math as ma

def lecture(source):
    test = open(source,"r")
    k = 0
    B = []
    for ligne in test:
        debut = ligne.rstrip('\n\r').split(" ")
        B.append([int(debut[1]),int(debut[2]),debut[0]])
        k = k+1

        pass
    test.close()

    return B

def distance(a,b,B):
    return ma.sqrt(((B[b][0]-B[a][0])*(B[b][0]-B[a][0]))+((B[b][1]-B[a][1])*(B[b][1]-B[a][1])))



